/**index.wxss**/
page {
    height: 100%; //不写这个，calc不起作用
    overflow: hidden;
}

// 隐藏滚动条
::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    color: transparent;
}

.banner {
    width: 100%;
    height: 400rpx;

    .swiper {
        display: flex;
        align-items: center;
        height: 388rpx;
    }
}

.con-container {
    display: flex;
    align-items: center;
    width: 100% !important;

    .slide-image {
        height: 305rpx;
        width: 500rpx;
        z-index: 1;
        margin: 0 auto;
        border-radius: 30rpx;
        overflow: hidden;
    }

    .active {
        transform: scale(1.2);
        transition: all 0.2s ease-in 0s;
        z-index: 20;
    }
}

.main-box {
    margin: 20rpx 20rpx 0 20rpx;
}

.menu {
    width: 100%;
    height: 150rpx;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20rpx;

    .menu-item {
        width: 25%;
        height: 100%;
        text-align: center;
        font-size: 28rpx;

        .menu-img {
            width: 80rpx;
            height: 80rpx;
        }
    }
}

// 商品列表
.goods-list {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30rpx;
    font-size: 26rpx;

    // 商品项目
    .good-item {
        width: 47%;
        height: 400rpx;
        border-radius: 20rpx;
        overflow: hidden;
        border: 1px solid #ccc;
        margin-bottom: 30rpx;

        .good-img {
            width: 100%;
            height: 300rpx;
        }

        .title {
            padding-left: 10rpx;
            font-size: 30rpx;
        }

        .intro {
            display: flex;
            flex-direction: row;
            padding: 10rpx;
            justify-content: space-between;

            .num {
                color: #ccc;
                font-size: 24rpx;
            }

            .price {
                color: red;
                font-weight: 600;
            }
        }
    }
}

// 开屏广告
.OpenScreenAdvertising {
    width: 600rpx;
    // height: 800rpx;
}

// 悬浮广告
.adv {
    position: fixed;
    right: 10rpx;
    top: 800rpx;
    // animation: shake 0.3s linear infinite alternate;
}

@keyframes shake {
    0% {
        transform: rotate(30deg);
    }

    50% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-30deg);
    }
}